<div id="header">
<div class="row">
	<div class="span2"><img id="logo" src="/images/img02.jpg"></div>
	<div class="span9 offset1" id="menu">
		<div class="row parent pull-right">
		<?php foreach ($menu['parent'] as $v):?>
		<span class="divider"> | </span>
		<a href="<?php echo BASE_URL . 'index.php/' . $v['variable'] ?>" class="<?php echo $v['variable'] . ((isset($v['active']) && $v['active'] == TRUE) ? ' active' : '')?>"><?php echo $v['name']?></a>
		<?php endforeach;?>
		</div>
		<?php if (key_exists('child', $menu) && !empty($menu['child'])):?>
		<div class="row child pull-right">
		<ul>
		<?php foreach ($menu['child'] as $k => $v):?>
		<li class="<?php echo $v['variable'] . (($k == 0) ? ' active' : '')?>"><?php echo $v['name']?></li>
		<?php endforeach;?>
		</ul>
		</div>
		<?php endif;?>
	</div>
</div>
</div>